package com.hxkj.domain.po;

import java.io.Serializable;
import java.util.Objects;

/**
* 
*
* @author: chenwei
* @version: 1.0
* @datetime: 2018-06-05 19:32:55
*/
public class Channel  implements Serializable {


    private static final long serialVersionUID = 1150300978762074162L;
    // 频道ID
    private Long channelId;
    // 频道名字
    private String channelName;
    // 模板ID
    private Long templetId;
    // 移动端模板ID
    private Long mTempletId;
    // 频道属性
    private Integer channelType;
    // 标识
    private Byte delTag;
    // 创建时间
    private Long createTime;
    // 修改时间
    private Long updateTime;
    // 频道状态
    private Long channelStatus;
    // 备注
    private String comment;
    //站点ID
    private Long siteId;
    // 频道别名
    private String templetName;
    //seo标题
    private String seoHeadline;
    //seo关键字
    private String seoKeyword;
    //seo描述
    private String seoDepict;

    // 文件名称
    private String fileName;
    // 文件路径
    private String path;
    // 频道ID字符串
    private String channelIds;

    //关键字
    private String keyword;

    //静态资源地址
    private String manuscriptPath;

    /**
     * 进度条相关
     * 保存redis计数器
     */
    private String socketKey;


    public String getManuscriptPath() {
        return manuscriptPath;
    }

    public void setManuscriptPath(String manuscriptPath) {
        this.manuscriptPath = manuscriptPath;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getChannelName() {
    return channelName;
    }

    public void setChannelName(String channelName) {
    this.channelName = channelName;
    }

    public Long getTempletId() {
    return templetId;
    }

    public void setTempletId(Long templetId) {
    this.templetId = templetId;
    }

    public Long getmTempletId() {
        return mTempletId;
    }

    public void setmTempletId(Long mTempletId) {
        this.mTempletId = mTempletId;
    }

    public Integer getChannelType() {
        return channelType;
    }

    public void setChannelType(Integer channelType) {
        this.channelType = channelType;
    }

    public Byte getDelTag() {
    return delTag;
    }

    public void setDelTag(Byte delTag) {
    this.delTag = delTag;
    }

    public Long getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Long createTime) {
    this.createTime = createTime;
    }

    public Long getUpdateTime() {
    return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
    this.updateTime = updateTime;
    }

    public Long getChannelStatus() {
    return channelStatus;
    }

    public void setChannelStatus(Long channelStatus) {
    this.channelStatus = channelStatus;
    }

    public String getComment() {
    return comment;
    }

    public void setComment(String comment) {
    this.comment = comment;
    }

    public Long getChannelId() {
    return channelId;
    }

    public void setChannelId(Long channelId) {
    this.channelId = channelId;
    }

    public Long getSiteId() {
        return siteId;
    }

    public void setSiteId(Long siteId) {
        this.siteId = siteId;
    }

    public String getTempletName() {
        return templetName;
    }

    public void setTempletName(String templetName) {
        this.templetName = templetName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getSeoHeadline() {
        return seoHeadline;
    }

    public void setSeoHeadline(String seoHeadline) {
        this.seoHeadline = seoHeadline;
    }

    public String getSeoKeyword() {
        return seoKeyword;
    }

    public void setSeoKeyword(String seoKeyword) {
        this.seoKeyword = seoKeyword;
    }

    public String getSeoDepict() {
        return seoDepict;
    }

    public void setSeoDepict(String seoDepict) {
        this.seoDepict = seoDepict;
    }

    public String getChannelIds() {
        return channelIds;
    }

    public void setChannelIds(String channelIds) {
        this.channelIds = channelIds;
    }

    public String getSocketKey() {
        return socketKey;
    }

    public void setSocketKey(String socketKey) {
        this.socketKey = socketKey;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Channel)) return false;
        Channel channel = (Channel) o;
        return Objects.equals(getChannelId(), channel.getChannelId()) &&
                Objects.equals(getChannelName(), channel.getChannelName()) &&
                Objects.equals(getTempletId(), channel.getTempletId()) &&
                Objects.equals(getChannelType(), channel.getChannelType()) &&
                Objects.equals(getDelTag(), channel.getDelTag()) &&
                Objects.equals(getCreateTime(), channel.getCreateTime()) &&
                Objects.equals(getUpdateTime(), channel.getUpdateTime()) &&
                Objects.equals(getChannelStatus(), channel.getChannelStatus()) &&
                Objects.equals(getComment(), channel.getComment()) &&
                Objects.equals(getSiteId(), channel.getSiteId()) &&
                Objects.equals(getTempletName(), channel.getTempletName()) &&
                Objects.equals(getSeoHeadline(), channel.getSeoHeadline()) &&
                Objects.equals(getSeoKeyword(), channel.getSeoKeyword()) &&
                Objects.equals(getSeoDepict(), channel.getSeoDepict()) &&
                Objects.equals(getFileName(), channel.getFileName()) &&
                Objects.equals(getPath(), channel.getPath()) &&
                Objects.equals(getChannelIds(), channel.getChannelIds());
    }

    @Override
    public int hashCode() {

        return Objects.hash(getChannelId(), getChannelName(), getTempletId(), getChannelType(), getDelTag(), getCreateTime(), getUpdateTime(), getChannelStatus(), getComment(), getSiteId(), getTempletName(), getSeoHeadline(), getSeoKeyword(), getSeoDepict(), getFileName(), getPath(), getChannelIds());
    }

    @Override
    public String toString() {
        return "Channel{" +
                "channelId=" + channelId +
                ", channelName='" + channelName + '\'' +
                ", templetId=" + templetId +
                ", channelType=" + channelType +
                ", delTag=" + delTag +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", channelStatus=" + channelStatus +
                ", comment='" + comment + '\'' +
                ", siteId=" + siteId +
                ", templetName='" + templetName + '\'' +
                ", seoHeadline='" + seoHeadline + '\'' +
                ", seoKeyword='" + seoKeyword + '\'' +
                ", seoDepict='" + seoDepict + '\'' +
                ", fileName='" + fileName + '\'' +
                ", path='" + path + '\'' +
                ", channelIds='" + channelIds + '\'' +
                ", keyword='" + keyword + '\'' +
                '}';
    }
}
